//获取app公告列表 miniapp/getNoticeList
Mock.mock(/\/miniapp\/getNoticeList/,'post',function(params){
    return {
      'code': 0,
      'result': {
        list: [
            {
                id:1,
                title:'公告1'
            },
            {
                id:2,
                pagetype:0,
                title:'公告2'
            }
        ]
      }
    }
})
//获取app文章列表 miniapp/getArticleList
Mock.mock(/\/miniapp\/getArticleType/,'post',function(params){
    return {
      'code': 0,
      'result': {
        list: [
            {
                id:121,
                type:'类别1'
            },
            {
                pid:122,
                type:'类别2'
            }
        ]
      }
    }
})
//获取app文章列表 miniapp/getArticleList
Mock.mock(/\/miniapp\/getArticleList/,'post',function(params){
    return {
      'code': 0,
      'result': {
        list: [
            {
                id:121,
                image:'https://img.myxiaochengxu.cn/images/1451/articles/pkBfdaZuaU91Bo8I7Z091Y9moUoOUZ.jpg',
                title:'文章1',
                time: '2018年5月13日'
            },
            {
                id:121,
                image:'https://img.myxiaochengxu.cn/images/1451/articles/pkBfdaZuaU91Bo8I7Z091Y9moUoOUZ.jpg',
                title:'文章2',
                time: '2018年5月13日'
            }
        ]
      }
    }
})
//获取模板页面列表 /miniapp/getProductList
Mock.mock(/\/miniapp\/getProductList/,'post',function(params){
    return {
      'code': 0,
      'result': {
        list: [
            {
                id:0,
                image:'https://img.myxiaochengxu.cn/images/1451/articles/pkBfdaZuaU91Bo8I7Z091Y9moUoOUZ.jpg',
                name:'产品1',
                oldPrice:12.00,
                curPrice:10.00
            },
            {
                id:1,
                image:'https://img.myxiaochengxu.cn/images/1451/articles/pkBfdaZuaU91Bo8I7Z091Y9moUoOUZ.jpg',
                name:'产品2',
                oldPrice:12.00,
                curPrice:10.00
            }
        ]
      }
    }
})
//获取模板页面列表 miniapp/getCaseList
Mock.mock(/\/miniapp\/getCaseList/,'post',function(params){
    return {
      'code': 0,
      'result': {
        list: [
            {
                id:102312,
                name:'案例1'
            },
            {
                id:302932,
                name:'案例2'
            }
        ]
      }
    }
})

// /miniapp/getImgList
Mock.mock(/\/miniapp\/getImgList/,'post',function(params){
    return {
      'code': 0,
      'result': {
        list: [
            {
                imglink: 'http://upload.cdn.oneyac.com/upload/custom_resource/1523614255748_2551.jpg'
            },
            {
                imglink: 'http://upload.cdn.oneyac.com/upload/custom_resource/1523614255748_2551.jpg'
            },
            {
                imglink: 'http://upload.cdn.oneyac.com/upload/custom_resource/1523614255748_2551.jpg'
            },
            {
                imglink: 'http://upload.cdn.oneyac.com/upload/custom_resource/1523614255748_2551.jpg'
            }
        ]
      }
    }
})

// /miniapp/getVideoList
Mock.mock(/\/miniapp\/getVideoList/,'post',function(params){
    return {
      'code': 0,
      'result': {
        list: [
            {
                imglink: 'http://upload.cdn.oneyac.com/upload/custom_resource/1523614255748_2551.jpg',
                videolink: 'testaea'
            },
            {
                imglink: 'http://upload.cdn.oneyac.com/upload/custom_resource/1523614255748_2551.jpg',
                videolink: 'testaea'
            },
            {
                imglink: 'http://upload.cdn.oneyac.com/upload/custom_resource/1523614255748_2551.jpg',
                videolink: 'testaea'
            },
            {
                imglink: 'http://upload.cdn.oneyac.com/upload/custom_resource/1523614255748_2551.jpg',
                videolink: 'testaea'
            }
        ]
      }
    }
})

// 获取企业列表
Mock.mock(/\/miniapp\/mscompanyinfo\/listnopage/,'post',function(params){
    return {
      'code': 0,
      'result': {
        list: [
            {
                id: 0,
                name: '企业信息1'
            },
            {
                id: 1,
                name: '企业信息2'
            },
            {
                id: 2,
                name: '企业信息3'
            },
            {
                id: 3,
                name: '企业信息4'
            }
        ]
      }
    }
})

// 获取企业信息 miniapp/msarticleinfo/detail
Mock.mock(/\/miniapp\/mscompanyinfo\/detail/,'post',function(params){
    return {
      'code': 0,
      'result': {
        infos:{
            name: 'hloe',
            imageId: '1222',
            image_fullUrl: 'https://img.myxiaochengxu.cn/images/1451/articles/j9pDP9pHGydOt99pWYd9gPCnrpipDo.jpg',
            content: '企业信息内容',
            address: '企业地址',
            phone: '15659430725',
            lng: '',
            lat: '',
            qrCode: '',
            qq: '244753571'
        }
      }
    }
})

// getFormList
Mock.mock(/\/miniapp\/getFormList/,'post',function(params){
    return {
      'code': 0,
      'result':{
        'list': [
            {
              id: 1,
              name: '用户资料1'
            },
            {
              id: 2,
              name: '用户资料2'
            }
          ]
      }
    }
})

// getFormDetail
Mock.mock(/\/miniapp\/getFormDetail/,'post',function(params){
    return {
      'code': 0,
      'result':{
        'list': [
            {"type":0,"name":"","label":"单行文本","required":false,"defaultType":0,"defaultValue":"","placeholder":""},
            {"type":1,"name":"","label":"多行文本","required":false,"placeholder":""},
            {"type":2,"name":"","label":"下拉框","required":false,"valueTexts":"选项1\n选项2\n选项3"},
            {"type":3,"name":"","label":"多选框","required":false,"valueTexts":"1212\n212132\n21321"},
            {"type":4,"name":"","label":"日期","required":false,"defaultType":1,"defaultDate":""},
            {"type":5,"name":"","label":"日期范围","required":false,"defaultStartType":1,"defaultStartDate":"","defaultEndType":1,"defaultEndDate":""},
            {"type":6,"name":"","label":"城市","required":false,"areaLevel":0},
            {"type":7,"name":"","label":"时间","required":false,"defaultType":0,"defaultTime":""},
            {"type":8,"name":"","label":"时间范围","required":false,"defaultStartType":0,"defaultStartTime":"","defaultEndType":0,"defaultEndTime":""}
        ]
      }
    }
})